package com.ziyun.erp.common.e.order;

import com.ziyun.erp.common.e.BaseEnum;

/**
 * @author gaosheng
 * @Description: 订单支付记录 支付状态
 */
public enum UserPaymentStatusEnum implements BaseEnum{

    SUCC("succ", "成功"),
    FAILED("failed", "失败"),
    CANCEL("cancel", "取消"),
    ERROR("error", "错误"),
    INVALID("invalid", "失效"),
    PROGRESS("progress", "进行"),
    TIMEOUT("timeout", "超时"),
    READY("ready", "准备"),

    ;

    private String code;
    private String describe;

    UserPaymentStatusEnum(String code, String describe){
        this.code = code;
        this.describe = describe;
    }

    @Override
    public int toInt() {
        return 0;
    }

    @Override
    public String toCode() {
        return code;
    }

    @Override
    public String toDescribe() {
        return describe;
    }
}
